const enum SharedType{
	BET_PANEL
}

/**
 * Create by richliu1023
 * @date 2016-08-11
 * @email richliu1023@gmail.com
 * @github https://github.com/RichLiu1023
 * @description a simple explanation
 */
class UISharedController {
	protected static _sharedDispatcher:rm.EventDispatcher = rm.EventDispatcher.create();
	public constructor() {
	}

	public static addSharedListener( eventID:number, callback:Function, thisObj:any ):void {
		UISharedController._sharedDispatcher.addEventListener( eventID, callback, thisObj );
	}

	public static removeSharedListener( eventID:number, callback:Function, thisObj:any ):void {
		UISharedController._sharedDispatcher.removeEventListener( eventID, callback, thisObj );
	}

	public static dispatchShared( eventID:number, data?:any ):void {
		UISharedController._sharedDispatcher.dispatchEvent( eventID, data );
	}
}